<?php
require("config/config.php");
$mysql = new SaeMysql();
 
$uid= strip_tags( $_REQUEST['uid'] );
$nake = strip_tags( $_REQUEST['nake'] );

if(is_numeric($uid))
{
	$sql = "INSERT  INTO `user` ( `uid` , `nake`, `time` , `grade`, `money`)
	VALUES ( '"  . $mysql->escape( $uid) . "' , '"  . $mysql->escape($nake) . "' , NOW(), '0' , '0') ";
	$mysql->runSql( $sql );
	if( $mysql->errno() != 0 )
	{
		echo "false";
	}else{
		echo "true";
	 }
}else{
	echo "false";
}

$mysql->closeDb();
?>